package com.ctgu.tengyun.service.sparepart;

import com.ctgu.tengyun.domain.SparePartInfo;

import java.util.List;

/**
 * Created by liaoweizhi on 2019/7/26.
 */
public interface SparePartInfoService {

    int insertSelective(SparePartInfo record);

    SparePartInfo selectByPartNo(String partNo);

    Integer countSparePart(String productNo, String partNo);

    List<SparePartInfo> selectSparePartList(String productNo,String partNo, Integer pageNo, Integer pageSize);

    SparePartInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SparePartInfo record);

    boolean reduceStock(Long id, Integer reduceCount);

}
